1 <?php
2 include(
"header.php");
3
4 include(
"sidebar.php");
5 include(
"dbconnection.php");
6 $sql = mysql_query(
"select * from spareparts where spid='$_GET[sparepartid]'");
7 $row = mysql_fetch_array($sql);
8 ?>
9         
10                             
11         <div id=
"main">
12         <h3>Spare parts store</h3>
13         <br />
14                                             
15         <table width=
"534" border="1">
16           <tr>
17             <td colspan=
"2"><strong>Spare part name: </strong>abcd spare</td>
18           </tr>
19           <tr>
20             <td width=
"142"><img src="upload/<?php echo $row['image']; ?>" width="196" height="153" /></td>
21             <td width=
"352" valign="top"><p><strong>Spare parts type : <?php echo $row['type']; ?></strong></p>
22             <p><strong>Cost : <?php echo $row[
'cost']; ?></strong></p>
23             <p><strong>Spare parts serial No. : <?php echo $row[
'sparepartno']; ?></strong></p>
24             <p>&nbsp;</p></td>
25           </tr>
26           <tr>
27             <td><strong>Description:</strong></td>
28             <td valign=
"top"><?php echo $row['description']; ?></td>
29           </tr>
30           <tr>
31             <td>&nbsp;</td>
32             <td valign=
"top"><strong><?php echo "<a href='sparepartsorder.php?sparepartid=$row[spid]'>Buy now&gt;&gt;</a>"; ?></strong></td>
33           </tr>
34           </table>
35         </div>
36         
37 <!-- wrap ends here -->
38 </div>
39         
40 <?php
41 include(
"footer.php");
42 ?>


Gõ tìm kiếm nhanh...